extern crate serde;
extern crate serde_json;

use serde::{Serialize, Deserialize};
#[derive(Serialize, Deserialize, Debug)]
pub struct Messager{
    pub friend_uuid:String,
    pub nice_name:String,
    pub real_name:String,
    pub is_explicit:i32,
    pub avatar_text:String,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct MessagerListData{
    pub cur_page:i32,
    pub datas:Option<Vec<Messager>>,
    pub offset:i32,
    pub over:bool,
    pub page_count:i32,
    pub size:i32,
    pub total:i32,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct MessagerPageData{
    pub data:MessagerListData,
    pub error_code:i32,
    pub error_msg:String,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct FriendMessage{
    pub user_uuid:String,
    pub nice_name:String,
    pub real_name:String,
    pub is_explicit:i32,
    pub avatar_text:String,
    pub content:String,
    pub create_time:String,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct FriendMessageListData{
    pub cur_page:i32,
    pub datas:Option<Vec<FriendMessage>>,
    pub offset:i32,
    pub over:bool,
    pub page_count:i32,
    pub size:i32,
    pub total:i32,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct FriendMessagePageData{
    pub data:FriendMessageListData,
    pub error_code:i32,
    pub error_msg:String,
}
